package com.pro.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.pro.dao.impl.BannerDaoImpl;
import com.pro.dao.impl.CompanyDaoImpl;
import com.pro.dao.impl.DesignerDaoImpl;
import com.pro.util.BaseServlet;

/**
 * Servlet implementation class AboutServlet
 */
public class AboutUsServlet extends BaseServlet {
	private static final long serialVersionUID = 1L;
       
	CompanyDaoImpl cDaoImpl = new CompanyDaoImpl();
	DesignerDaoImpl dDaoImpl =  new DesignerDaoImpl();
	public void about(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
		
		        //公司介绍
				request.setAttribute("company", cDaoImpl.companyDetail());
				//设计团队
				request.setAttribute("dList", dDaoImpl.designerAll());
				
				request.getRequestDispatcher("about.jsp").forward(request, response);
			}

		}
